﻿namespace Vdc.Grid
{
    using System;
    using System.Collections.Generic;

    public abstract class JavaScriptConverter
    {
        protected JavaScriptConverter()
        {
        }

        internal abstract object Deserialize(IDictionary<string, object> dictionary, Type type, JavaScriptSerializer serializer);
        internal abstract IDictionary<string, object> Serialize(object obj, JavaScriptSerializer serializer);

        public abstract IEnumerable<Type> SupportedTypes { get; }
    }
}

